<include file="Public:head" title='账号通列表' />
<script src="__PUBLIC__/js/Jquery/validate.js"></script>
<script type="text/javascript">
    $(function(){
        $("#form").validate({
            errorPlacement: function(error, element){
                var error_td = element.parent('td');
                error_td.find('label.error').hide();
                error_td.append(error);
            },
            rules : {
                name : {
                    required : true
                }
            },
            messages : {
                name : {
                    required : '账号通名称不能为空'
                }
                
            }
        });
    });
</script>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('User/lists')}">用户管理</a></li>
                    <li class="active">账号通{$Think.get.id|getPageType}</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <h3 class="header smaller lighter blue">账号通{$Think.get.id|getPageType}</h3>

                                <form action="{:U('User/accounts_detail_post')}" method="POST" id="form">
                                    <table class="table table_detail">
                                        <tbody>
                                 <tr>
                                    <td style="width:15%; text-align:center">名称:</td>
                                    <td>
                                        <input name="name" type="text" class="common_txt"  value="{$detail.name}"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width:15%; text-align:center">key:</td>
                                    <td>
                                        <input name="key" type="text" class="common_txt" value="{$detail.key}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width:15%; text-align:center">secret:</td>
                                    <td>
                                        <input name="secret" type="text" class="common_txt" value="{$detail.secret}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width:15%; text-align:center">标示代码:</td>
                                    <td>
                                         <span class="g-input-selectbox">
                                        <select name="code" id="code">
                                            <foreach name="threeLogin" item="row">
                                                <option value="{$row.code}"<if condition="$row.code eq $detail['code']">selected</if>>
                                                {$row.code}</option>
                                            </foreach>

                                        </select>
                                            </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width:15%;text-align:center">是否显示:</td>
                                    <td>
                            <input type="radio" name="is_check" value="0" autocomplete="off" <if condition="$detail.is_check eq 0">checked='checked'</if> > 否
                            <input type="radio" name="is_check" value="1"autocomplete="off"  <if condition="$detail.is_check eq 1">checked='checked'</if>> 是
                            </td>
                            </tr>
                            <tr>
                                <td style="width:15%; text-align:center">排序:</td>
                                <td>
                                    <input name="ord" type="text" class="common_txt" value="{$detail.ord}" />
                                </td>
                            </tr>
                                            <tr>
                                                <td class="td_left"></td>
                                                <td>
                                                    <input type='hidden' name='id' value='{$Think.get.id}'/>
                                   
                                            <button class="btn btn-info btn-sm" type="submit">
                                                <i class="icon-ok bigger-110 "></i>
                                                保 存
                                            </button>

                                        <button class="btn btn-sm reset" type="button" onclick="goUrl(-1)">
                                            <i class="icon-undo bigger-110"></i>
                                            返 回
                                        </button>
                                        </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Public:setting" />
    </div>
</div>
<include file="Public:foot" />